<%-- 
    Document   : EvaluationForm
    Created on : Jan 6, 2012, 8:53:27 PM
    Author     : Priyanka
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://struts.apache.org/tags-html"  prefix="html" %> 
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="/struts-tags" prefix="s" %>

<br/>
<table>
    <tr>
        <td>
            <img src="<s:url value="/img/icons/certificate_new.png"/>"> 
        </td>
        <td>
            <span class="title">
                Evaluate students
            </span>
        </td>
    </tr>
</table>
<br/><br/>      


<table>
    <tr><td>
            </br></br>
            <b>Select Module for Evaluation: &nbsp;&nbsp;</b>



            <select name="modulecode"  id="module" onchange="giveURL()">
                <option></option>
                <s:iterator value="modules">
                    <option value="<s:property value="moduleCode"/>"><s:property value="title"/></option>
                </s:iterator>
            </select>

            </br> </br>  
        </td>
    </tr>
    <tr>
        <td>
            <div id="label">
            </div>        
        </td>
    </tr>

</table>
</body>


<SCRIPT language="javascript">
    function giveURL() {  
        var url1=document.getElementById('module').options[document.getElementById('module').selectedIndex].value;
        $('#label').html("<br><b>Select the type of Evaluation:</b><br/><br/> <a href='list_Students_"+url1+"'>Individual Evaluation</a>\n\
      <br/><br/><a href='evaluation/list_Teams_"+url1+".action'>Team Evaluation</a>");
    }
</SCRIPT>
</html>
